<!DOCTYPE html>
<html>
<head>
  <script>
    function loadHandler() {
      if (opener) {
        //opener.console.log("oauth callback href:", location.href);
        if (location.hash) {
          opener.require("esri/identity/IdentityManager").setOAuthResponseHash(location.hash);
          //opener.window.location.reload();
          close();
        }
      }
      else {
        close();
      }
    }
  </script>
</head>
<body onload="loadHandler();">
</body>
</html>
